[mirrors]
http://bellard.org/TinyGL/TinyGL-0.4.tar.gz

[main]
filesize=67788
sha512=fae44f4b16f3b64edb66d41db0e86b8fbea143d98f6c1336aee6be997f8a4cb8c065a48ad39ad9ef9a134a85cd6f34ff74ed9d76a7644420339c5e1f37d7ca56
tardir=TinyGL

[deps]
libx11

[build]
patch -p1 < "$K"/tinygl.patch
make -j$MAKE_THREADS

dest="$butch_install_dir""$butch_prefix"
for i in lib include ; do
	mkdir -p "$dest"/"$i"
	cp -r "$i"/* "$dest"/"$i"/
done
ln -sf libTinyGL.a "$dest"/lib/libGL.a
